//===================================================================
// 项目名 : Hbt.Cur
// 文件名 : HbtDbSeedComponentMenu.cs
// 创建者 : Claude
// 创建时间: 2024-12-01
// 版本号 : V0.0.1
// 描述   : 组件菜单数据初始化类
//===================================================================

using Hbt.Domain.Entities.Identity;

namespace Hbt.Infrastructure.Data.Seeds.Auth;

/// <summary>
/// 组件菜单数据初始化类
/// </summary>
public static class HbtDbSeedComponentMenu
{
    /// <summary>
    /// 获取组件二级菜单
    /// </summary>
    /// <param name="parentId">父级菜单ID</param>
    /// <returns>二级菜单列表</returns>
    public static List<HbtMenu> GetComponentSecondMenus(long parentId)
    {
        return new List<HbtMenu>
        {
            new HbtMenu
            {
                MenuName = "图标组件",
                TransKey = "menu.component.icon",
                ParentId = parentId,
                OrderNum = 1,
                Path = "icon",
                Component = "components/Base/HbtIcon/index.vue",
                QueryParams = null,
                IsExternal = 0,
                IsCache = 0,
                MenuType = 1,
                Visible = 0,
                MenuStatus = 0,
                Perms = "component:icon:view",
                Icon = "SmileOutlined",
                Remark = "图标组件页面",
                CreateBy = "Hbt365",
                CreateTime = DateTime.Now,
                UpdateBy = "Hbt365",
                UpdateTime = DateTime.Now
            }
        };
    }
}
